package org.opensmile.website.controller;



import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Controller
public class SystemController {

	@RequestMapping(value="/")
	public String main(Model model){
		return "home";
	}
	
	@RequestMapping(value="/top")
	public String top(){
		return "system/top";
	}
	
	@RequestMapping(value="/system_main")
	public String main(){
		return "system/main";
	}
	
	@RequestMapping(value="/system_left",method = RequestMethod.GET)
	public String left(){
		return "system/left";
	}
	
	@RequestMapping(value="/system_right",method = RequestMethod.GET)
	public String right(){
		return "system/right";
	}
	
	@RequestMapping(value="/login" ,params="error")
	public String loginerror(String error,Model model){
		model.addAttribute("error", error);
		return "login";
	}
	
	@RequestMapping(value="/login")
	public String login(){
		return "login";
	}
}
